package likong.bibliothek.app;

import likong.bibliothek.app.navigation.ListNavigation;
import likong.bibliothek.app.navigation.Navigation;

import org.apache.wicket.PageParameters;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.BookmarkablePageLink;

public abstract class GoodLookingPage extends WebPage {
	protected final ListNavigation subnavigation = new ListNavigation("subnavigation");
	
	public GoodLookingPage() {
		this(null);
	}
	
	public GoodLookingPage(final PageParameters parameters)
	{
		super(parameters);

		add (new Navigation("navPanel").setRenderBodyOnly(true));
		add (subnavigation);
		
		add (new BookmarkablePageLink("headerHomePageLink", getApplication().getHomePage()));
	}
}
